package tongwentongshu.com.app.contract;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.support.annotation.NonNull;

import tongwentongshu.com.app.bean.AppItem;
import tongwentongshu.com.app.bean.PersonalBean;
import tongwentongshu.com.app.bean.SignBean;

/**
 * Created by XiongBin on 2017/7/10.
 */

public interface PersonalCenterContract {
    interface Model {
        void getFileByPhotoAlbum(Activity act);//相机调用

        void getFileByPhotograph(Activity act);//相册调用

        void onActivityResult(int requestCode, int resultCode,
                              Intent data);//相册调用

        void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
                                        @NonNull int[] grantResults);
    }

    interface View {
        void onSuccess(PersonalBean per);

        void onSignSuccess(SignBean per);

        void setHeadImage(Bitmap bmp, String url);

        void onError();
        void onHeadSuccess(String msg);
    }

    interface Presenter {
        void initMyInfo();

        void initSign();

        void updataHead(String url);
    }
}
